package org.crmsystem.model;

import java.util.List;

import org.springframework.stereotype.Component;

/**
 * 分页用的实体类
 * @author 孙艳平
 *
 */
@Component
public class Page {
	/**
	 * 每页有多少条
	 */
	private int pageSize;
	/**
	 * 当前的页数
	 */
	private int currPage;
	/**
	 * 总页数
	 */
	private int totalPage;
	/**
	 * 总条数
	 */
	private int totalNum;
	/**
	 * 当前页记录列表
	 */
	private List<Object> result;
	public Page() {

	}
	public Page(int pageSize, int currPage, int totalPage, int totalNum,
			List<Object> result) {
		this.pageSize = pageSize;
		this.currPage = currPage;
		this.totalPage = totalPage;
		this.totalNum = totalNum;
		this.result = result;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getCurrPage() {
		return currPage;
	}
	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getTotalNum() {
		return totalNum;
	}
	public void setTotalNum(int totalNum) {
		this.totalNum = totalNum;
	}
	public List<Object> getResult() {
		return result;
	}
	public void setResult(List<Object> result) {
		this.result = result;
	}
	
}